package com.supercube.common.utils;

/**
 * Javascript工具类
 *
 * @author djzhao
 * @date 19/10/26 16:20
 * @email djzhao627@gmail.com
 */
public class JavaScriptUtils {

    /**
     * 生成AlertJS
     * @param msg 提示信息
     * @return AlertJS代码
     */
    public static String JSAlert(String msg) {
        return String.format("<script>alert(%s);</script>", msg);
    }
}
